﻿#ifndef MUSICCONFIG_H
#define MUSICCONFIG_H

#include <QWidget>
#include <QDir>
#include <QDirIterator>
#include <QMediaPlayer>
#include <QDebug>
#include <QThread>
#include <QTimer>
#include <QTime>
#include <QFileDialog>
#include <QMessageBox>
#include <QVector>
#include <QRandomGenerator>

#include "global.h"


namespace Ui {
class MusicConfig;
}

class MusicConfig : public QWidget
{
    Q_OBJECT

public:
    explicit MusicConfig(QWidget *parent = nullptr);
    ~MusicConfig();



public slots:
    void btn_play_slot();
    void btn_pause_slot();
    void btn_volplus_slot();
    void btn_voldec_slot();
    void btn_setPath_slot();
    void btn_mode_slot();

    void judgeState_slot();



private:
    Ui::MusicConfig *ui;
    QMediaPlayer* player;
    QTimer* timer;
    QTimer* timer_focus;
    QString musicPath;
    QString musicState;
    QVector<QString> currMusicArray;
};

#endif // MUSICCONFIG_H
